package com.coolrui.domain.statemachine.enums;

import lombok.Getter;

// 订单事件
@Getter
public enum OrderEvent {
    CREATE(10, "创建订单"),
    PAY(20, "支付订单"),
    ASSIGNED(30, "指派订单"),
    SERVING(40, "开始服务"),
    FINISHED(50, "完成订单"),
    CANCEL(60, "取消订单"),
    REFUND(70, "订单退款");

    // 使用 final 修饰，确保字段不可变
    private final Integer code;
    private final String desc;

    OrderEvent(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}